package com.jyu.apts.dto;

import com.jyu.apts.entity.ItemProductionLine;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class ItemProductionLineDto {
	long id;//主键
	String name;//名称
	ItemDto item;
	public ItemProductionLineDto convert(ItemProductionLine itemProductionLine) {
		setId(itemProductionLine.getId());
		setName(itemProductionLine.getName());
		setItem(new ItemDto().convert(itemProductionLine.getItem()));
		return this;
	}
}
